import React from "react";
import {Button, Grid} from "@material-ui/core";
import {AddRounded} from "@material-ui/icons";

import {EnhancedTable, Toolbar} from "../../../shared/components"
import {renderEditDeleteActions} from "../../../shared/utilities/uiTemplate.util";

const Reminder = (props) => {

    return (
        <Grid container spacing={4}>
            <Toolbar
                title="Reminder"
                actions={<React.Fragment>
                    <Button variant="contained" color="primary" startIcon={<AddRounded/>}>Create Reminder</Button>
                </React.Fragment>}
            />

            <Grid item xs={12}>
                <EnhancedTable
                    title={"Reminder List"}
                    schema={[
                        {id: 'id', label: 'Id', hidden: true},
                        {id: 'title', label: 'Title', sort: true},
                        {id: 'vehicleNNum', label: 'Vehicle No.', sort: true},
                        {id: 'type', label: 'Type', sort: true},
                        {id: 'repeat', label: 'Repeat', sort: true},
                        {id: 'actions', label: 'Actions', type: 'render', render: renderEditDeleteActions},
                    ]}
                    data={[]}
                />
            </Grid>
        </Grid>
    );
};

export default Reminder;
